package com.pds.web.device.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pds.web.device.entity.PdsTestOrganizationDevice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 检测机构仪器设备表
 *
 * @author srf sunlightcs@gmail.com
 * @since 1.0.0 2024-02-19
 */
@Mapper
public interface PdsTestOrganizationDeviceMapper extends BaseMapper<PdsTestOrganizationDevice> {
    /**
     * 根据仪器id查询仪器信息
     * @param ids
     * @return
     */
    List<Map> getListByIds(String ids);

    /**
     * 批量添加仪器
     * @param dataList
     * @return
     */
    int batchInsert(@Param("dataList") List<PdsTestOrganizationDevice> dataList);
}
